import Vue from 'vue'
import 'babel-polyfill'
import App from './App.vue'
import * as Sentry from "@sentry/vue";

Sentry.init({
  Vue,
  dsn: "http://f491e9aecf08d484a0cd64bd098de526@192.168.1.10:9000/3",
  integrations: [
    new Sentry.BrowserTracing({
      // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled
      tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/],
    }),
    new Sentry.Replay(),
  ],
  // Performance Monitoring
  tracesSampleRate: 1.0, //  Capture 100% of the transactions
  // Session Replay
  replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
  replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
});
Vue.config.productionTip = false

new Vue({
  render: h => h(App),
}).$mount('#app')
